package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.annotations.Case;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class CustomerTraceHistory {
    private Long id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date traceTime;//跟进时间

    private String traceDetails;//跟进内容

    private SystemDictionaryItem traceType;//跟进方式

    private Integer traceResult;//跟进结果

    private String remark;//备注

    private Customer customer;//客户

    private Employee inputUser;//录入人员

    private Date inputTime;//录入时间

    private Integer type;//类型

    public String getTraceResultName(){
        switch (traceResult){
            case 3 :return "优";
            case 2 :return "中";
            default: return "差";
        }

    }

}